const config = {
  // API 基础地址
  // baseUrl: 'http://localhost:8123', 
     baseUrl: 'http://1.15.22.194:8090',  
  // 修改这一行就可以了
  
  // API 路径
  api: {
    // 用户相关
    login: '/user/login',
    register: '/user/register',
    userInfo: '/user/info',
    userQuery: '/user/query',
    
    // 消息相关
    messageList: '/message/list',
    messageSend: '/message/send',
    messageRead: '/message/read',
    
    // 帖子相关
    postList: '/post/list',
    postCreate: '/post/create',
    postListByType: '/post/list/type'
  }
}

// 获取完整的 API URL
const getApiUrl = (path) => {
  return `${config.baseUrl}${path}`
}

module.exports = {
  config,
  getApiUrl
} 